<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>学生查看成绩</title>
  <link rel="stylesheet" href="../../static/css/bootstrap.4.3.1.min.js.css" th:href="@{/css/bootstrap.4.3.1.min.js.css}"/>
  <style>
    a{
      color: #e6e6e6;
      text-decoration: none;
    }

    a:hover {
      color: orange;
      text-decoration: none;
    }

    li{
      width: 300px;
      display: inline;
      margin: 0px 2% 0px 0px;
    }

    .yxy01{
      border-radius: 5px;border: 1px solid #666;
    }
  </style>
</head>
<body>
<div>
  <div class="row">
    <div class="col-sm-12">
      <form action="/selectScore2" method="post">
        <ul style="list-style: none;margin: 10px 0px 10px 0px;padding: 0px">
          <li style="margin: 0px 0px 0px 15px">
            <label>学期：</label>
            <select name="semesterName" class="b_select" style="width: 14%;height: 25px;border-radius: 5px;border-color: cadetblue">
              <option value="">请选择</option>
              <option th:each="semester:${semester}"
                      th:value="${semester.semesterName}" th:text="${semester.semesterName}">
              </option>
            </select>
          </li>
          <li>
            <input type="hidden" name="username" th:value="${username}"/>
          </li>
          <li>
            <input class="btn btn-warning" style="color: white;"  type="submit" value="搜索/重置"/><!--根据文本框写入数据，点击一次是搜索，点击第二次就是相当于重置！！-->
          </li>
        </ul>
      </form>
    </div>
  </div>
<!--  <button class="btn btn-info form-control" style="height:50px"><a th:href="@{'/score/insert'}" target="_self" >新增</a></button>-->
  <table class="table table-striped table-bordered table-hover text-center">
    <thead>
    <tr>
      <th>序号</th>
      <th>学生姓名</th>
      <th>学期</th>
      <th>c语言成绩</th>
      <th>java成绩</th>
      <th>python成绩</th>
<!--      <th>操作</th>-->
    </tr>
    </thead>
    <tbody>
    <tr th:each="score:${score}">
      <td th:text="${score.id}"></td>
      <td th:text="${score.studentName}"></td>
      <td th:text="${score.semesterName}"></td>
      <td th:text="${score.c_language}"></td>
      <td th:text="${score.java_language}"></td>
      <td th:text="${score.python_language}"></td>
<!--      <td>-->
<!--        <a class="btn btn-secondary" th:href="@{/studentScore_t/edit(id=${score.id})}" target="_self">更改</a>-->
<!--&lt;!&ndash;        <a class="btn btn-danger" th:href="@{/deleteScore(id=${score.id})}">删除</a>&ndash;&gt;-->
<!--      </td>-->
    </tr>
    </tbody>
  </table>
</div>
</body>
</html>